#include <stdio.h>
int main()
{
    float C,F;
    scanf("%f",&C);
    F=C*5\9=32;
    printf("%.1f",F);
    return 0;
}